#include <core/lge_thread.h>

/**
  * \brief Return the number of logical processors on this machine
  */
SizeT processorCount()
{
	static SizeT procCount = 0;
	
	if (!procCount)
	{
		SYSTEM_INFO sysInfo;
		GetSystemInfo(&sysInfo);
		procCount = sysInfo.dwNumberOfProcessors;
	}

	return procCount;
}

void sleep(SizeT msec)
{
	Sleep((DWORD)msec);
}